<?php
	if(!isset($rootdir)) $rootdir = "/home/nrb62281/public_html";
	include_once($rootdir . "/wowsig/DataManagers/WebManager.php");
	
	class dataManager{
		private $webManager;
		function __construct(){
			$this->webManager = new webManager;
		}
		
		public function getCharacterInfoByNameRealmRegion($name, $realm, $region){
			return $this->webManager->getCharacterFromWeb($name, $realm, $region);
		}
		
		public function getCharacterInfoById($id){
			//TODO: look up ID to give name, region, realm
			//TODO: using known good data for now.
			$characterName = "Kallalilly";
			$realmName = "Proudmoore";
			$region = "US";
			
			return $this->webManager->getCharacterFromWeb($characterName, $realmName, $region);
		}
	}
?>